﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" x:Class="WindowMain"
    Title="Enhancements.Basic.Expressions Tutorial" Height="600" Width="800" Background="Black" BorderBrush="Black" Foreground="White" BorderThickness="1" MinWidth="800" MinHeight="600" ResizeMode="CanResizeWithGrip" WindowStartupLocation="CenterScreen" FontFamily="Segoe UI" WindowState="Maximized">
	<Window.Resources>
		<Style x:Key="CheckRadioFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="RadioButtonStyle1" TargetType="{x:Type RadioButton}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
			<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RadioButton}">
						<BulletDecorator Background="Transparent">
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</BulletDecorator>
						<ControlTemplate.Triggers>
							<Trigger Property="IsChecked" Value="true"/>
							<Trigger Property="IsPressed" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
    <Grid>
    	<DockPanel Margin="8,16">
    		<StackPanel VerticalAlignment="Top" DockPanel.Dock="Bottom">
    			<Grid>
    				<Grid.RowDefinitions>
    					<RowDefinition/>
    					<RowDefinition/>
              <RowDefinition/>
            </Grid.RowDefinitions>
    				<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
    					<Label Content="Project" Foreground="White" Padding="0" VerticalAlignment="Center"/>
    					<Label x:Name="__ProjectLink" Content="http://enhancements.codeplex.com" Foreground="{DynamicResource BlueBrush}" Padding="8,0,0,0" FontWeight="Bold" VerticalAlignment="Center" Cursor="Hand"/>
    				</StackPanel>
    				<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.Row="1">
    					<Label Content="Blog" Foreground="White" Padding="0" VerticalAlignment="Center"/>
    					<Label x:Name="__BlogLink" Content="http://jasilva.spaces.live.com" Foreground="{DynamicResource BlueBrush}" Padding="8,0,0,0" FontWeight="Bold" VerticalAlignment="Center" Cursor="Hand"/>
    				</StackPanel>
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.Row="2">
              <Label Content="E-mail" Foreground="White" Padding="0" VerticalAlignment="Center"/>
              <Label x:Name="__EmailLink" Content="anjos.silva@gmail.com" Foreground="{DynamicResource BlueBrush}" Padding="8,0,0,0" FontWeight="Bold" VerticalAlignment="Center" Cursor="Hand"/>
            </StackPanel>
          </Grid>
    		</StackPanel>
    		<StackPanel Width="216">
    			<RadioButton x:Name="__TutorialOption" Content="1. Tutorial" Padding="0" Foreground="{DynamicResource BlueBrush}" Background="{x:Null}" FontSize="26.667" Style="{DynamicResource RadioButtonStyle1}" IsChecked="True" Cursor="Hand"/>
    			<RadioButton x:Name="__ActionOption" Content="2. Action!" Padding="0" Foreground="{DynamicResource BlueBrush}" Background="{x:Null}" FontSize="26.667" Style="{DynamicResource RadioButtonStyle1}" Cursor="Hand"/>
    			<RadioButton x:Name="__UsagesOption" Content="3. Usages" Padding="0" Foreground="{DynamicResource BlueBrush}" Background="{x:Null}" FontSize="26.667" Style="{DynamicResource RadioButtonStyle1}" Cursor="Hand"/>
    		</StackPanel>
    		<Grid x:Name="__ContentHost" Margin="16,0,0,16"/>
    	</DockPanel>
    </Grid>
</Window>
